<template>
  <div>
      <PieChart  :chartData="chartData"></PieChart>
  </div>
</template>

<script>
import PieChart from "@/views/dashboard/PieChart.vue"
import request from "@/utils/request";
 
export default {
    name: "Psetmeal", 
    data(){
      return { 
        chartData:{}
        }
    }, 
    components : {
      PieChart
    },
    created(){
      this.getMembers();
    },
    methods:{
      getMembers(){
        request.get('/api/report/getSetmealReport').then( res=> {
            console.log(res)
            if (res.code == 200) {
              this.chartData = res.data;
        }
        });
      }
    }
}
</script>

<style>

</style>